package ua.kpi_java_training.evgeniygusar.module3.tests;

import org.junit.Test;
import ua.kpi_java_training.evgeniygusar.module3.*;

public class AllLeopardsTest {
    AllLeopards leopardsObject = new AllLeopards();

    @Test
    public void testGetTotalNumberOfEatedOstriches() throws Exception {
        assert(0==leopardsObject.getTotalNumberOfEatedOstriches());
    }

    @Test
    public void testIncrementTotalNumberOfEatedVictims() throws Exception {
        leopardsObject.incrementTotalNumberOfEatedOstriches();
        assert(1==leopardsObject.getTotalNumberOfEatedOstriches());
    }

    @Test
    public void testGetPredatorBirthCycle() throws Exception {
        assert(4==leopardsObject.getLeopardBirthCycle());
    }

    @Test
    public void testAddPredator() throws Exception {
        leopardsObject.addLeopard();
        assert(1==leopardsObject.numbersOfLeopards());
    }

    @Test
    public void testGetPredator() throws Exception {
        leopardsObject.getLeopard(0).x=1;
        assert(1==leopardsObject.getLeopard(0).x);
    }

    @Test
    public void testNumbersOfPredators() throws Exception {
        assert(0==leopardsObject.numbersOfLeopards());
    }
}
